package oldFiles;
public class Player {

	private String full_name;
	private String nick;
	private Integer score = 0;
	private Boolean rep_player = false;

	Player(String name, String nick) throws Exception {
		setFull_name(name);
		setNick(nick);
	}
	
	public String getFull_name() {
		return full_name;
	}

	public void setFull_name(String full_name) throws Exception {
		if (full_name == null) {
			throw new Exception("Полное имя игрока обязательно для заполнения.");
		}
		this.full_name = full_name;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Boolean getRep_player() {
		return rep_player;
	}

	public void setRep_player(Boolean rep_player) {
		this.rep_player = rep_player;
	}

}
